package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.ReservationVo;

import java.util.Map;

public interface ReservationService {

    Integer getCancelledReservationCount();

    Map<String, Object> getReservationCountByTime(Long time);

    void addReservation(Reservation reservation);

    PageResponse<ReservationVo> getByPage(Integer status, Integer pageNum, Integer pageSize);

    void cancelReservation(Long id);
}
